/*********************************************************************
	Rhapsody	: 7.6
	Login		: Pawel
	Component	: DefaultComponent
	Configuration 	: DefaultConfig
	Model Element	: evOpenDoors
//!	Generated Date	: Sun, 27, Nov 2011 
	File Path	: DefaultComponent/DefaultConfig/CargoLiftSystem/evOpenDoors.java
*********************************************************************/

package CargoLiftSystem;

//## auto_generated
import com.ibm.rational.rhapsody.animation.*;
//## auto_generated
import com.ibm.rational.rhapsody.oxf.RiJEvent;
//## auto_generated
import com.ibm.rational.rhapsody.animcom.animMessages.*;

//----------------------------------------------------------------------------
// CargoLiftSystem/evOpenDoors.java                                                                  
//----------------------------------------------------------------------------

//## package CargoLiftSystem 


//## event evOpenDoors(int) 
public class evOpenDoors extends RiJEvent implements AnimatedEvent {
    
    public static final int evOpenDoors_CargoLiftSystem_id = 6646;		//## ignore 
    
    public int floor;
    
    // Constructors
    
    public  evOpenDoors() {
        lId = evOpenDoors_CargoLiftSystem_id;
    }
    public  evOpenDoors(int p_floor) {
        lId = evOpenDoors_CargoLiftSystem_id;
        floor = p_floor;
    }
    
    public boolean isTypeOf(long id) {
        return (evOpenDoors_CargoLiftSystem_id==id);
    }
    
    //#[ ignore
    /** the animated event proxy */
    public static AnimEventClass animClass = new AnimEventClass("CargoLiftSystem.evOpenDoors");
    /**  see com.ibm.rational.rhapsody.animation.AnimatedEvent interface */
    public Object getFieldValue(java.lang.reflect.Field f, Object userInstance) { 
         Object obj = null;
         try {
             obj = f.get(userInstance);
         } catch(Exception e) {
              System.err.println("Exception: getting Field value: " + e);
              e.printStackTrace();
         }
         return obj;
    }
    /**  see com.ibm.rational.rhapsody.animation.AnimatedEvent interface */
    public void addAttributes(AnimAttributes msg) {      
          msg.add("floor", floor);
    }
    public String toString() {
          String s="evOpenDoors(";      
          s += "floor=" + AnimInstance.animToString(floor) + " ";
          s += ")";
          return s;
    }
    //#]
    
}
/*********************************************************************
	File Path	: DefaultComponent/DefaultConfig/CargoLiftSystem/evOpenDoors.java
*********************************************************************/

